package com.by.common.Utils;

import com.by.common.ex.BusinessException;
public class Assert {
    /*
    *
    * 判断rs结果 为0制造自定义异常
    *
    * */
    public static void isNotSuccess(int r,String msg) {
        if(r==0){
            throw  new BusinessException(msg);
        }
    }
}
